package com.ebring.shareEducation.controller;

import com.ebring.shareEducation.bean.admin.MenuAll;
import com.ebring.shareEducation.service.EmailService;
import com.ebring.shareEducation.utils.RspMsg;
import io.swagger.annotations.ApiOperation;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping(value="/email")
public class DemoEmailController {

    @Autowired
    private EmailService emailService;

    /**
     * 测试邮件发送
     */
    @GetMapping("/getTestDemoEmail")
    @ApiOperation(value="测试邮件发送", notes="getEntityById")
    public String getEntityById() throws Exception {
        String sendTo = "739787927@qq.com";
        String titel = "测试邮件标题";
        String content = "测试邮件内容";
        emailService.sendSimpleMail(sendTo, titel, content);
        return "11";
    }
}

